﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace kb_24_the_game
{
    internal class Backgrounds : ISprite
    {
        public Texture2D background;
        public Rectangle rectangle;

        public Vector2 position { get; set; }

        public Backgrounds(Texture2D newBackground, Rectangle newRectangle)
        {
            background = newBackground;
            rectangle = newRectangle;
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(background, rectangle, Color.White);
        }

        public void Update(GameTime gameTime)
        {
        }

        public void Links()
        {
            rectangle.X += 3;
        }

        public void Rechts()
        {
            rectangle.X -= 3;
        }
    }
}